import {api} from "@/boot/axios";


export function login(param) {
    return api({
        url: '/admin/login',
        method: 'post',
        data: param
    })
}
export function selectAll() {
    return api({
        url: '/admin/selectAll',
        method: 'get',
    })
}

export function update(param) {
    return api({
        url: '/admin/update',
        method: 'post',
        data: param
    })
}
export function remove(id) {
    return api({
        url: '/admin/delete?'+new URLSearchParams({user_id:id.toString()}),
        method: 'get',
    })

}
export function add(param) {
    return api({
        url: '/admin/add',
        method: 'post',
        data: param
    })
}
export function passwordChange(data) {
    return api({
        url: '/admin/changePassword',
        method: 'post',
        data:data
    })

}